import { createApp } from 'vue'
import './style.css'
import ElementPlus from 'element-plus'
import router, { setupRouter } from './router' // 路由
import { setupStore } from './store' // vuex
import App from './App'
const app = createApp(App)

setupRouter(app) // 注册使用路由
setupStore(app) // 注册vuex

// 当路由加载完毕时，挂载到dom上
router.isReady().then(() => {
  app.use(ElementPlus).mount('#app')
})